﻿using System.Xml.Serialization;

namespace SS4U.Library.ConfigurationClasses
{
    public class SearchDefinition
    {
        [XmlAttribute("iterationType")]
        public IterationType IterationType { get; set; }

        [XmlAttribute("isDefault")]
        public bool IsDefault { get; set; }

        [XmlAttribute("name")]
        public string Name { get; set; }

        [XmlElement("DocumentType")]
        public DocumentTypeCollection DocumentTypes { get; set; }

        [XmlElement("id")]
        public int Id { get; set; }

        public SearchDefinition() 
        {
            DocumentTypes = new DocumentTypeCollection();
        }
    }
}
